package com.lzy.plugintest;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void jump(View view) {

//        //构造函数中指定ACTION是Intent.ACTION_VIEW，即用于打开浏览器
//        Intent intent = new Intent(Intent.ACTION_VIEW);
//        //指定要打开的网址
//        intent.setData(Uri.parse("https://www.baidu.com"));
//        startActivity(intent);
        startActivity(new Intent(this,SecondActivity.class));
    }
}
